﻿@{
    ViewBag.Title = "DateTimeFunc";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Date Time Func</h2>

<script type="text/javascript">
    window.onload = function () {
        var now = new Date();
        var year = now.getFullYear();
        var month = now.getMonth(); // integer between 0 and 11
        var date = now.getDate();   // number between 1 and 31
        var day = now.getDay();   // day of the week as a number between 0 and 6. 0 is Sunday, and 6 is Saturday
        var minute = now.getMinutes();
        var second = now.getSeconds();
        var time = now.getTime(); // Total number of milliseconds since January 1, 1970 at midnight

        ZEUS.DEBUG.log("Now: " + now);
        ZEUS.DEBUG.log("Year: " + year);
        ZEUS.DEBUG.log("Month(0 - 11): " + month);
        ZEUS.DEBUG.log("Date(1 - 31): " + date);
        ZEUS.DEBUG.log("Day(0 - 6): " + day);
        ZEUS.DEBUG.log("Minute(0 - 59): " + minute);
        ZEUS.DEBUG.log("Second(0 - 59): " + second);
        ZEUS.DEBUG.log("Time(milliseconds): " + time);
    }
</script>


